/**
 * 
 */
package com.ofek.eventos.net.lks.test;

/**
 * @author Ofek
 *
 */
class Route {
	/**
	 * @param srcUid2
	 * @param destUid2
	 */
	public Route(final String srcUid, final String destUid) {
		this.srcUid = srcUid;
		this.destUid = destUid;
	}
	String destUid;
	String srcUid;
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return srcUid+"->"+destUid;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return srcUid.hashCode() + destUid.hashCode();
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(final Object obj) {
		if ( super.equals(obj) ) return true;
		if ( obj instanceof Route ) return ((Route) obj).destUid.equals(destUid) && ((Route) obj).srcUid.equals(srcUid);
		return false;
	}
}
